package com.loong.user.model;

import com.loong.common.mybatis.entity.BaseEntity;
import java.util.Date;
import javax.persistence.*;

import lombok.*;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "user_verification")
@ToString
public class UserVerification extends BaseEntity {
    /**
     * 用户账号
     */
    private String username;

    /**
     * 手机号码
     */
    private String mobile;

    /**
     * 电话国际区号[不包含+]
     */
    @Column(name = "tel_area")
    private String telArea;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 密码
     */
    private String password;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 是否启用手机登陆
     */
    @Column(name = "mobile_enable")
    private Boolean mobileEnable;

    /**
     * 是否启动账号登陆
     */
    @Column(name = "username_enable")
    private Boolean usernameEnable;

    /**
     * 是否启动邮箱登陆
     */
    @Column(name = "email_enable")
    private Boolean emailEnable;

    /**
     * 是否开启谷歌验证
     */
    @Column(name = "google_auth_enable")
    private Boolean googleAuthEnable;

    /**
     * 谷歌验证信息
     */
    @Column(name = "google_auth_code")
    private String googleAuthCode;

    /**
     * 用户类型
     */
    @Column(name = "user_type")
    private Integer userType;

    /**
     * 最后登陆时间
     */
    @Column(name = "last_login_time")
    private Date lastLoginTime;

    /**
     * 最后登陆ip
     */
    @Column(name = "last_login_ip")
    private String lastLoginIp;

    /**
     * 注册时间
     */
    @Column(name = "register_time")
    private Date registerTime;

    /**
     * 注册ip
     */
    @Column(name = "register_ip")
    private String registerIp;
}
